The smpp protocol is an open industrial standard protocol. It provides flexible data communication interfaces for Information Centers and short message system application terminals during text message data transmission. The information center has short message center smsc gsm Unstructured Supplementary Service data. server ussd and other types of short message system applications include the WAP Proxy Serve
Messages: 7-bit, 8-bit, and 16-bit (ucs2.
In the gsm_03.40 specification, the length of an SMS is defined:
140 characters: 8-bit encoding
160 characters: 7-bit encoding
70 characters: 16-bit encoding
Generally, there are two solutions for ultra-long text messages: one is to send multiple separate text messages, so that the mobile phone will receive multiple messages, second, multiple messages are sent through the udhi mechanism, so that a long message is displayed on the mobile phone in order.
The Logica smpp API has the following problems:
1. Support for long messages. Add the setmediamessagedata method to the submitsm. Java class.
/*** Added by zcg 2012-01-18 * process long messages ** @ Param buffer * @ throws wronglengthofstringexception */Public void setinclumessagedata (bytebuffer buffer) throws wronglengthofstringexception {try {This. invalid Message. setdata (buffer);} catch (exception e) {If (E instanceof wronglengthofstringexcept
subsequent processing.
PUSH can send a link to a site or business to a mobile phone supporting wap push via SMS, So that you only need to read this text message and open the link in the text message, you can directly access the business. Therefore, wap push achieves the combination of SMS and WAP services, saving users time to find services and facilitating users to directly find and use their favorite services.
2 Introduction to Short Message Gateway
Short Message Gateway (ISMG) is a device be
trading business processing platform adopted adopts the gsm03.39 v3.30 protocol specification. Unless otherwise stated
The proposed specifications shall prevail. The smpp protocol can use TCP/IP or X.25 as the underlying communication bearer.
Ismg intenet Short Message Gateway
Dsmp Data Service manage Platform Data Business Management Platform
Smpp Short Message Peer to Peer Short Message Point-to-Point Pr
environment more through the short message (SMS) gateway and mobile terminal interaction, Kannel also implemented the SMS gateway function.A short message Gateway (ISMG) is a device between a short message center (SMSC) and a business provider (SP) that provides a secure, fast channel for data exchange between the two entities. The SMS gateway uses the SMPP protocol (short messages PEER to PEER, SMS Point-
ModemNowsms requires a connection to an SMSC to interface with SMS and MMS networks. a smsc connection can be a GSM Modem-a GSM Modem or phone connected to a PC serial port (or to a USB port ).(You can connect to your laptop via infrared. My configuration is Nokia 6610 + Dell flexibility 600 m)
2. Configure SMSCThe first step is to configure SMSC settings, which
:
(1) use the service code to directly address ussd nodes and external business nodes;
(2) The business code is only responsible for guiding to the ussd node, and then according to the address carried in the ussd string, the node is directed to the businessService node. This feature enables users to access multiple external business nodes in a dialog, provided thatAll operations must carry the addresses of external business nodes (such as the IP addresses of business book points ).
2. Applicatio
Internet Server Provider (ISP) is the company and institution that provides Internet access services or Internet information services for users. The former is also known as IAP (Internet access provider, Internet access provider), and the latter is also known as ICP (Internet content provider, Internet content provider ).
ASP is the abbreviation of Application Service Provider, meaning "Application Service Provider"
NGOSS (Next Generation Operational support systems) is developed by TMF (Tele Ma
usually takes the Province as the unit and builds a provincial monitoring center in the provincial network management center. The monitoring center provides connections through the SMS gateway SMG) to the short message service center SMSC, the Short Message Gateway supports the standard SMPP3.3 protocol and SGIP1.2 protocol, which helps to collect the status information and alarm information of the direct station and exchange control information such
registers the sms_external_void _ string_string_boxed function generated using glib-genequalal. Callback-glib uses this function to retrieve signal parameters from the signal message and pass them to the callback function, that is, to execute the scattered set operation. This indicates that the column set function generated by glib-genstmal can be used for both the column set and the scattered set.
The client program also uses the IO channel to accept user input. When registering the callback f
Service Center Number
If the mobile phone supports WMA, you can obtain the SMS service center number by obtaining the value of "wireless. messaging. SMS. SMSC. For the three carriers in China, China Mobile's SMS service center number is 13800xxx500, of which XXX is the region code of the number. China Unicom's SMS service center number is messy, however, they all start with 130, including 3G mobile phones. For China Telecom's mobile phones, after con
2 message sending// User information encoding method# Define gsm_7bit 0# Define gsm_8bit 4# Define gsm_ucs2 8// Short Message Parameter structure, shared encoding/Decoding// The string ends with 0.Typedef struct {Char SCA [16]; // Short Message Service Center number (SMSC address)Char TPA [16]; // target number or reply number (TP-DA or TP-RA)Char tp_pid; // User Information Protocol identifier (TP-PID)Char tp_dcs; // user information encoding method
: Called number, length is determined by the data in F.
I: Protocol ID, 2-bit hexadecimal number.
J: Data encoding scheme, 2-bit hexadecimal number.
K: Valid, 2-digit hexadecimal number.
L: User data length, 2-bit hexadecimal number.
M: User data, whose length is determined by the data in L. J is set to use UCS2 encoding, here is the Unicode character in English and Chinese.
PDU Coding Protocol Simple Description
Example 1 Send: Smsc number is +86
CMPP error code (zzzz)
Error code error description remarks
0x00000000 successful
0x00000001 other errors
0x00000002 reserved for SMSC vendor definition Error
0x00000010 message length error
0x00000011 command length error
The Message ID 0x00000012 is invalid.
0x00000013 has no permission to execute this command
0x00000014 Reserved
The System ID is invalid for 0x00000020.
0x00000021 invalid password
0x00000022 invalid systemtype
0x00000023 Reserved
On the "Send and receive short message through the serial port" topic, I will communicate with netizens, discuss some of the technical issues sorted into the following text. Hopefully this article will be helpful to more friends who are interested in SMS. Because I am a hobby, time and money are limited, there is no power to many models of mobile phones and module one by one test, there may be such a mistake, I hope that the line of the expert criticism.
I wrote a message to send the program, u
a medium entity between an external information resource station entity (SP) and the SMSC WI Thin the mobile network. On one hand, ISMG are required to receive messages sent by SP to mobile users, and submit them to SMSC. On the other hand, messages of mobile users ordering SP Services would be a sent by SMSC to SP via ISMG. In addition, to-reduce the signaling
, PendingIntent deliveryIntent ){SmsMessage. SubmitPdu pdu = SmsMessage. getSubmitPdu (ScAddr, destAddr, text, (deliveryIntent! = Null ));SendRawPdu (pdu. encodedScAddress, pdu. encodedMessage, sentIntent, deliveryIntent );}......
At this point, the word "sendText ()" is gone, and it is replaced by another method name: sendRawPdu (). Tracing this method can find that it is SMSDispatcher. is this class familiar with a java method? Yes. We have already dealt with it in Stage 4! Let's see what its
= SMSMESSAGE.GETSUBMITPDU (SCADDR, Destaddr, text, (deliveryintent! = null));SENDRAWPDU (pdu.encodedscaddress, Pdu.encodedmessage, Sentintent, deliveryintent);}......Here, "SendText ()" The word is gone, replaced by another method name: SENDRAWPDU (), tracking this method can find it is Smsdispatcher.java a method, this kind of look familiar? Yes, we've dealt with it in the fourth phase! Let's see what the SENDRAWPDU is all about: view plaincopy to clipboardprint?protected void Sendrawpdu (byte
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.